package org.stars.dao.params;

import org.stars.daostars.events.DaoEventHandler;

public class ParamEventHandler extends Param {

	DaoEventHandler handler;
	
	public ParamEventHandler()
	{
		this(null);
	}
	
	public ParamEventHandler(DaoEventHandler handler)
	{		
		this.type=TypeParam.EVENT_HANDLER;
		this.handler=handler;
	}

	public DaoEventHandler getHandler() {
		return handler;
	}

	public void setHandler(DaoEventHandler handler) {
		this.handler = handler;
	}
	
	public static ParamEventHandler set(DaoEventHandler handler)
	{
		return new ParamEventHandler(handler);
	}
}
